/**
 * 
 */
package org.vsg.stock.basic.service;

import javax.annotation.Resource;

import org.vsg.common.biz.exception.ServiceException;
import org.vsg.stock.basic.domain.StockCategory;
import org.vsg.stock.basic.persistence.StockCategoryDao;

/**
 * @author Bill vison
 *
 */
public class StockCategoryServiceImpl implements StockCategoryService {

	@Resource
	private StockCategoryDao stockCategoryDao;
	
	/* (non-Javadoc)
	 * @see org.vsg.stock.basic.service.StockCategoryService#loadStockCategory(int)
	 */
	@Override
	public StockCategory loadStockCategory(int categoryId)
			throws ServiceException {
		// TODO Auto-generated method stub
		return (StockCategory)stockCategoryDao.load(StockCategory.class, categoryId);
	}

}
